package com.yami.shop.bean.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 融云群组用户
 *
 * @author 刘聪
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tz_melt_cloud_group_user")
@Schema(description = "融云群组用户")
@Builder
public class MeltCloudGroupUser {

    @Schema(description = "主键")
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 融云群组id
     */
    @Schema(description = "融云群组id")
    @TableField(value = "group_id")
    private Long groupId;

    /**
     * 融云用户id
     */
    @Schema(description = "融云用户id")
    @TableField(value = "user_id")
    private String userId;

    /**
     * 群昵称
     */
    @Schema(description = "群昵称")
    @TableField(value = "group_nike_name")
    private String groupNikeName;

    /**
     * 禁言状态 0正常 1禁言
     */
    @Schema(description = "禁言状态  0正常 1禁言")
    @TableField(value = "user_status")
    private String userStatus;

    @Schema(description = "是否退出群聊 0 正常 1 退出")
    @TableField(value = "is_del")
    private String isDel;


    @Schema(description = "是否是管理员 0 否 1 是")
    @TableField(value = "is_manage")
    private String isManage;
}
